package org.jeecg.modules.htxincailiao.forums.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: ht_forums_question
 * @Author: jeecg-boot
 * @Date:   2022-07-14 09:56:14
 * @Version: V1.0
 */
@Data
@TableName("ht_forums_question")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ht_forums_question对象", description="ht_forums_question")
public class HTForumsQuestion implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;
	/**提问人ID*/
	@Excel(name = "提问人ID", width = 15)
    @ApiModelProperty(value = "提问人ID")
    private String askUserId;
	/**问答分类ID*/
	@Excel(name = "问答分类ID", width = 15, dictTable = "ht_forums_category", dicText = "name", dicCode = "id")
	@Dict(dictTable = "ht_forums_category", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "问答分类ID")
    private String categoryId;
	/**标题*/
	@Excel(name = "标题", width = 15)
    @ApiModelProperty(value = "标题")
    private String name;
	/**描述*/
	@Excel(name = "描述", width = 15)
    @ApiModelProperty(value = "描述")
    private String description;
	/**排序*/
	@Excel(name = "排序", width = 15)
    @ApiModelProperty(value = "排序")
    private Integer sort;
	/**首页排序*/
	@Excel(name = "首页排序", width = 15)
    @ApiModelProperty(value = "首页排序")
    private Integer homeSort;
	/**评论条数*/
	@Excel(name = "评论条数", width = 15)
    @ApiModelProperty(value = "评论条数")
    private Integer commentCount;
	/**审核状态*/
	@Excel(name = "审核状态", width = 15, dicCode = "audit_status")
	@Dict(dicCode = "audit_status")
    @ApiModelProperty(value = "审核状态")
    private Integer auditStatus;
	/**是否为首页推荐: 0-不推荐 1-推荐*/
	@Excel(name = "是否为首页推荐: 0-不推荐 1-推荐", width = 15, dicCode = "is_home_recommended")
	@Dict(dicCode = "is_home_recommended")
    @ApiModelProperty(value = "是否为首页推荐: 0-不推荐 1-推荐")
    private Integer isHomeRecommended;
	/**审核人*/
	@Excel(name = "审核人", width = 15)
    @ApiModelProperty(value = "审核人")
    private String auditUsername;
	/**审批意见*/
	@Excel(name = "审批意见", width = 15)
    @ApiModelProperty(value = "审批意见")
    private String auditComments;
	/**逻辑删除：0-未删除,1-删除。*/
	@Excel(name = "逻辑删除：0-未删除,1-删除。", width = 15, dicCode = "is_deleted")
	@Dict(dicCode = "is_deleted")
    @ApiModelProperty(value = "逻辑删除：0-未删除,1-删除。")
    private String isDeleted;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @TableField(exist = false)
    private Integer pageNo=1;

    @TableField(exist = false)
    private Integer pageSize=10;


    /**SEO关键字*/
    @Excel(name = "SEO关键字", width = 15)
    @ApiModelProperty(value = "SEO关键字")
    private String seoKeywords;


    /**SEO描述*/
    @Excel(name = "SEO描述", width = 15)
    @ApiModelProperty(value = "SEO描述")
    private String seoDescription;

    @TableField(exist = false)
    private List<HTForumsAnswer> answerList;
}
